package com.ruoyi.basicdata.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 住户管理对象 manage_resident
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
public class Resident extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 小区id */
    @Excel(name = "小区id")
    private Long villageId;

    /** 楼栋id */
    @Excel(name = "楼栋id")
    private Long buildingId;

    /** 住户姓名 */
    @Excel(name = "住户姓名")
    private String residentName;

    /** 管理员电话 */
    @Excel(name = "管理员电话")
    private String residentPhone;

    /** 楼栋地址（例：5栋502） */
    @Excel(name = "楼栋地址", readConverterExp = "例=：5栋502")
    private String residentAddress;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 描述 */
    @Excel(name = "描述")
    private String des;

    // 小区
    private Village village;

    // 楼栋
    private Building building;

    public Village getVillage() {
        return village;
    }

    public void setVillage(Village village) {
        this.village = village;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVillageId(Long villageId) 
    {
        this.villageId = villageId;
    }

    public Long getVillageId() 
    {
        return villageId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setResidentName(String residentName) 
    {
        this.residentName = residentName;
    }

    public String getResidentName() 
    {
        return residentName;
    }
    public void setResidentPhone(String residentPhone) 
    {
        this.residentPhone = residentPhone;
    }

    public String getResidentPhone() 
    {
        return residentPhone;
    }
    public void setResidentAddress(String residentAddress) 
    {
        this.residentAddress = residentAddress;
    }

    public String getResidentAddress() 
    {
        return residentAddress;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("villageId", getVillageId())
            .append("buildingId", getBuildingId())
            .append("residentName", getResidentName())
            .append("residentPhone", getResidentPhone())
            .append("residentAddress", getResidentAddress())
            .append("state", getState())
            .append("des", getDes())
            .toString();
    }
}
